<?php
function test()
{
    static $count = 0;
    echo $count++;
    echo $count;
}
test();
test();
test();
test();
test();
?>
